//
//  UINavigationBar+CustomImage.m
//  tap
//
//  Created by William Lindmeier on 8/4/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "UINavigationBar+CustomImage.h"
#import "AppDelegate.h"

@implementation UINavigationBar (CustomImage)


 // Desaturates the navigation bar
- (void)drawRect:(CGRect)rect {
	UIImage *image = [UIImage imageNamed: @"navi_01.png"];
	[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    
}

//- (void)setTitle:(NSString *)title
//{
//    //[super setTitle:title];
//    AppDelegate *appDele = [[UIApplication sharedApplication] delegate];
//    UILabel *titleView = (UILabel *)appDele.nvController.navigationItem.titleView;
//    if (!titleView) {
//        titleView = [[UILabel alloc] initWithFrame:CGRectZero];
//        titleView.backgroundColor = [UIColor clearColor];
//        titleView.font = [UIFont boldSystemFontOfSize:20.0];
//        titleView.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5];
//        
//        titleView.textColor = [UIColor yellowColor]; // Change to desired color
//
//        appDele.nvController.navigationItem.titleView = titleView;
//        [titleView release];
//    }
//    titleView.text = title;
//    [titleView sizeToFit];
//}

@end
